package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;
import java.util.ArrayList;

public class MedalsBoardBean extends Bean {

  private static Image MEDALS_BOARD;
  private static Image New;
  private static ArrayList<Image> MEDALS;
  private static ArrayList<Image> star;
  private static int MEDALS_BOARD_X;
  private static int MEDALS_BOARD_Y;
  private static int MEDALS_BOARD_W;
  private static int MEDALS_BOARD_H;
  private static int NewX;
  private static int NewY;
  private static int NewW;
  private static int NewH;
  private static int MEDALS_X;
  private static int MEDALS_Y;
  private static int MEDALS_W;
  private static int MEDALS_H;
  private static int starX;
  private static int starY;
  private static int starW;
  private static int starH;

  public void initBean(Magicanvas cvs) {
    MEDALS_BOARD = getImage("/res/img/MEDALS_BOARD.png");
    trackerImage(MEDALS_BOARD, cvs);
    MEDALS_BOARD_W = MEDALS_BOARD.getWidth(cvs);
    MEDALS_BOARD_H = MEDALS_BOARD.getHeight(cvs);
    MEDALS_BOARD_X = 172 - MEDALS_BOARD_W / 2;
    MEDALS_BOARD_Y = (int) (307.0D - MEDALS_BOARD_H * 0.8D);

    New = getImage("/res/img/new.gif");
    trackerImage(New, cvs);
    NewW = New.getWidth(cvs);
    NewH = New.getHeight(cvs);

    MEDALS =
      getGroupOfImages(
        new String[] {
          "/res/img/MEDALS/0.gif",
          "/res/img/MEDALS/1.gif",
          "/res/img/MEDALS/2.gif",
          "/res/img/MEDALS/3.gif",
        }
      );

    trackerImages(MEDALS, cvs);
    MEDALS_W = ((Image) MEDALS.get(0)).getWidth(cvs);
    MEDALS_H = ((Image) MEDALS.get(0)).getHeight(cvs);
    MEDALS_X = MEDALS_BOARD_X + 27;
    MEDALS_Y = MEDALS_BOARD_Y + 42;

    star =
      getGroupOfImages(
        new String[] {
          "/res/img/star/0.gif",
          "/res/img/star/1.gif",
          "/res/img/star/2.png",
        }
      );

    trackerImages(star, cvs);
    starW = ((Image) star.get(0)).getWidth(cvs);
    starH = ((Image) star.get(0)).getHeight(cvs);
  }

  public static int getMEDALS_BOARD_X() {
    return MEDALS_BOARD_X;
  }

  public static void setMEDALS_BOARD_X(int mEDALS_BOARD_X) {
    MEDALS_BOARD_X = mEDALS_BOARD_X;
  }

  public static int getMEDALS_BOARD_Y() {
    return MEDALS_BOARD_Y;
  }

  public static void setMEDALS_BOARD_Y(int mEDALS_BOARD_Y) {
    MEDALS_BOARD_Y = mEDALS_BOARD_Y;
  }

  public static int getNewX() {
    return NewX;
  }

  public static void setNewX(int newX) {
    NewX = newX;
  }

  public static int getNewY() {
    return NewY;
  }

  public static void setNewY(int newY) {
    NewY = newY;
  }

  public static int getMEDALS_X() {
    return MEDALS_X;
  }

  public static void setMEDALS_X(int mEDALS_X) {
    MEDALS_X = mEDALS_X;
  }

  public static int getMEDALS_Y() {
    return MEDALS_Y;
  }

  public static void setMEDALS_Y(int mEDALS_Y) {
    MEDALS_Y = mEDALS_Y;
  }

  public static int getStarX() {
    return starX;
  }

  public static void setStarX(int starX) {
    starX = starX;
  }

  public static int getStarY() {
    return starY;
  }

  public static void setStarY(int starY) {
    starY = starY;
  }

  public static Image getMEDALS_BOARD() {
    return MEDALS_BOARD;
  }

  public static Image getNew() {
    return New;
  }

  public static ArrayList<Image> getMEDALS() {
    return MEDALS;
  }

  public static ArrayList<Image> getStar() {
    return star;
  }

  public static int getMEDALS_BOARD_W() {
    return MEDALS_BOARD_W;
  }

  public static int getMEDALS_BOARD_H() {
    return MEDALS_BOARD_H;
  }

  public static int getNewW() {
    return NewW;
  }

  public static int getNewH() {
    return NewH;
  }

  public static int getMEDALS_W() {
    return MEDALS_W;
  }

  public static int getMEDALS_H() {
    return MEDALS_H;
  }

  public static int getStarW() {
    return starW;
  }

  public static int getStarH() {
    return starH;
  }
}
